<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<table id="receiveUserData"></table>
<script type="text/javascript">
		/* 读取用户信息并设置到表格 */
		 var receiveUserData;
		 receiveUserData=$('#receiveUserData').datagrid({
			singleSelect:true,
			url:'info/getReceiveInfoList',
			striped:true,
			loadMsg:"正在加载中...",
			pagination:true,
			pageNumber:1,
			pageSize:10,
			pageList:[10,20,30,40,50],
			remoteSort:false,
			fit:true,
			//toolbar:"#userGrid_bar",
			columns:[[
			      	{field:'riId',sortable:true,align:'center',checkbox:true},
			  		{field:'riName',title:'收货人姓名',width:180,align:'center'},
			  		{field:'riAddress',title:'收货地址',width:180,align:'center'},
			  		{field:'riPhone',title:'联系方式',width:180,align:'center'},
			  		{field:'riZipCode',title:'邮编',width:180,align:'center'},
			  		{field:'uId',title:'所属会员id',width:180,align:'center'},
			  		{field:'riCreateTime',title:'添加时间',width:180,align:'center',
			  			formatter: function(value,row,index){
							return getDate(row.riCreateTime.toString());
			  			}	
			  		},
			  		{field:'riUpdateTime',title:'修改时间',width:180,align:'center',
			  			formatter: function(value,row,index){
			  				if(row.riUpdateTime!=""&&row.riUpdateTime!=undefined){
			  					return getDate(row.riUpdateTime.toString());
			  				}
			  			}		
			  		}]]
			
		}); 
		</script>